using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for DBconnect
/// </summary>
public class DBconnect:DatabaseProcess.SqlClient
{
	public DBconnect()
	{
        string connectInfo = ConfigurationSettings.AppSettings["ConnectionInfo"];
        string[] arInfo = new string[8];
        char[] splitter  = {';', '='};
        arInfo = connectInfo.Split(splitter);        
        this.ServerName = arInfo[1];
        this.UserName = arInfo[3];
        this.PassWord = arInfo[5];
        this.DataBaseName = arInfo[7];
	}
}
